package com.accp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author jack
 * @since 2021-08-03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Comments implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("hotEventsId")
    private Integer hotEventsId;

    //@DateTimeFormat(pattern="yy-MM-dd HH-mm-ss")
    @JsonFormat(pattern="yy-MM-dd HH-mm-ss",timezone="GMT+8")
    @TableField("commentDate")
    private Date commentDate;

    private String content;

	@Override
	public String toString() {
		return "Comments [id=" + id + ", hotEventsId=" + hotEventsId + ", commentDate=" + commentDate + ", content="
				+ content + "]";
	}
}
